package urlEncoder;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * @Author forsake
 * @Description URLEncoder.encode默认的编码方法是UTF-8
 * @Date 13:28 2022/11/28
 **/  
public class ISO {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String name1= URLEncoder.encode("方","UTF-8");
        System.out.println(name1);
        String name2= URLEncoder.encode("方","ISO-8859-1");
        System.out.println(name2);
        System.out.println(URLEncoder.encode("方"));
    }

}
